home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Bodychunk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  1.7 KB  |  56 lines

  1. //
  2. //  $VER: Bodychunk.h   1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Änderungen
  24. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  25. //
  26.  
  27. #ifndef CPP_TWIMUI_BODYCHUNK_H
  28. #define CPP_TWIMUI_BODYCHUNK_H
  29.  
  30. #ifndef CPP_TWIMUI_BITMAP_H
  31. #include <classes/twimui/bitmap.h>
  32. #endif
  33.  
  34. class MUIBodychunk : public MUIBitmap
  35.     {
  36.     protected:
  37.         virtual const ULONG ClassNum() const;
  38.     public:
  39.         MUIBodychunk(const struct TagItem *t) : MUIBitmap(MUIC_Bodychunk) { init(t); };
  40.         MUIBodychunk(const Tag, ...);
  41.         MUIBodychunk() : MUIBitmap(MUIC_Bodychunk) { };
  42.         MUIBodychunk(const MUIBodychunk &);
  43.         virtual ~MUIBodychunk();
  44.         MUIBodychunk &operator= (const MUIBodychunk &);
  45.         void Body(const UBYTE *p) { set(MUIA_Bodychunk_Body,(ULONG)p); };
  46.         UBYTE *Body() const { return((UBYTE *)get(MUIA_Bodychunk_Body,0L)); };
  47.         void Compression(const UBYTE p) { set(MUIA_Bodychunk_Compression,(ULONG)p); };
  48.         UBYTE Compression() const { return((UBYTE)get(MUIA_Bodychunk_Compression,0L)); };
  49.         void Depth(const LONG p) { set(MUIA_Bodychunk_Depth,(ULONG)p); };
  50.         LONG Depth() const { return((LONG)get(MUIA_Bodychunk_Depth,0L)); };
  51.         void Masking(const UBYTE p) { set(MUIA_Bodychunk_Masking,(ULONG)p); };
  52.         UBYTE Masking() const { return((UBYTE)get(MUIA_Bodychunk_Masking,0L)); };
  53.     };
  54.  
  55. #endif
  56.